D. Would throw a compilation error as constructor overloading is

not allowed in Solidity

Q24: What is the issue with the following code?

// SPDX-License-Identifier: SOME IDENTIFIER

pragma solidity ^0.8.10;

contract FunctionOverloadingContract {

string value;

function someFunction(string calldata newValue) public {

value = newValue;

}

function someFunction(int someValue) public pure

returns(int){

return someValue + 10;

}

}

A. No issue at all. Function overloading is allowed in Solidity

B. Would throw a compilation error as the variable is needed to

be declared private

C. Would cause issue during the run as the variable is needed to

be declared private

D. Would throw a compilation error as constructor overloading is

not allowed in Solidity

Q25: What is true regarding the state variables?

A. State variables are stored in a permanent storage associated

with the account on which the smart contract runs

B. The life of the State variables is associated with the life of the

contract

C. The state variables can be accessed from anywhere in the

contract

D. All of the above